package cn.kooki.app.duobao.data.Bean.User.record;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xionghao on 15/12/27.
 */
public class RecordItem implements Parcelable {


    /**
     * id : 150
     * title : 微信红包28元
     * yunjiage : 1.00
     * canyurenshu : 30
     * zongrenshu : 30
     * qishu : 212287610
     * thumb : http://ss.7qbao.com/statics/uploads/shopimg/20151226/36857290123063.jpg
     * q_uid : 153726
     * q_user_code : 10000010
     * q_end_time : 1451309762.121
     * status : 2
     * endtime : 1451309125
     * new_time : -17601
     * q_user : 157****9479
     * q_num : 0
     * uname_go_record : []
     */

    public String id;
    public String title;
    public String yunjiage;
    public String canyurenshu;
    public String zongrenshu;
    public String qishu;
    public String thumb;
    public String q_uid;
    public String q_user_code;
    public String q_end_time;
    public String status;
    public String endtime;
    public int new_time;
    public String q_user;
    public int q_num;
    public String uname_go_record;
    public int q_user_num;
    public String q_user_go_record;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.title);
        dest.writeString(this.yunjiage);
        dest.writeString(this.canyurenshu);
        dest.writeString(this.zongrenshu);
        dest.writeString(this.qishu);
        dest.writeString(this.thumb);
        dest.writeString(this.q_uid);
        dest.writeString(this.q_user_code);
        dest.writeString(this.q_end_time);
        dest.writeString(this.status);
        dest.writeString(this.endtime);
        dest.writeInt(this.new_time);
        dest.writeString(this.q_user);
        dest.writeInt(this.q_num);
        dest.writeString(this.uname_go_record);
        dest.writeInt(this.q_user_num);
        dest.writeString(this.q_user_go_record);
    }

    public RecordItem() {
    }

    protected RecordItem(Parcel in) {
        this.id = in.readString();
        this.title = in.readString();
        this.yunjiage = in.readString();
        this.canyurenshu = in.readString();
        this.zongrenshu = in.readString();
        this.qishu = in.readString();
        this.thumb = in.readString();
        this.q_uid = in.readString();
        this.q_user_code = in.readString();
        this.q_end_time = in.readString();
        this.status = in.readString();
        this.endtime = in.readString();
        this.new_time = in.readInt();
        this.q_user = in.readString();
        this.q_num = in.readInt();
        this.uname_go_record = in.readString();
        this.q_user_num = in.readInt();
        this.q_user_go_record = in.readString();
    }

    public static final Parcelable.Creator<RecordItem> CREATOR = new Parcelable.Creator<RecordItem>() {
        public RecordItem createFromParcel(Parcel source) {
            return new RecordItem(source);
        }

        public RecordItem[] newArray(int size) {
            return new RecordItem[size];
        }
    };
}
